{% extends 'base.html' %}

{% block titles %}
<title>
    寒门客-手机归属地查询
</title>
{% endblock %}

{% block app_content %}

<div class="container">
<div class="row">
    <center>
        <br>
    <h3>根据手机号码查询手机号的归属地信息</h3><br>
    <form action="" method="post">
      {{ form.hidden_tag() }}
    <h3>{{ form.name.label() }}<br>
        {{ form.name(size=88) }}
    </h3>
    <h3 style="color:blue">{{ form.submit() }}</h3>
  </form><br>
    {% if rs %}
    <table class="table table-bordered">
      <tr>
        <td>省份</td>
        <td>{{ rs['province'] }}</td>
      </tr>
      <tr>
        <td>城市</td>
        <td>{{ rs['city'] }}</td>
      </tr>
      <tr>
        <td>邮编</td>
        <td>{{ rs['postcode'] }}</td>
      </tr>
	        <tr>
        <td>区号</td>
        <td>{{ rs['areacode'] }}</td>
      </tr>
	        <tr>
        <td>运营商</td>
        <td>{{ rs['sp'] }}</td>
      </tr>
	        <tr>
        <td>手机号码</td>
        <td>{{ rs['phone'] }}</td>
      </tr>
</table>
<br>
    {% endif %}

    <h2  class="text-center">作者的抖音二维码:</h2>
  <img src="{{ url_for('static',filename='images/douyinss.png') }}" alt="手机归属地查询" width="50%" height="50%"/>
</center>
</div>
</div>
{% endblock %}